package cs2340.quarterblack.wheresmystuff;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;

public class BigPicture extends Activity {
	
	Button btnBack;
	ImageView ivBigPicture;
	Uri imageURI;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.activity_bigpicture);
		
		btnBack = (Button)findViewById(R.id.bp_btn_back);
		ivBigPicture = (ImageView)findViewById(R.id.bigpicture);
		
		btnBack.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				onBackPressed();
			}
		});
		
		imageURI = Uri.parse(this.getIntent().getStringExtra("imageURI"));
		ivBigPicture.setImageURI(imageURI);
	}
}
